Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If programs were specified, only care about the state of the given ones #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peternewman
Copy link
Contributor

Description

E.g. if foo is STOPPED and bar is RUNNING, if we've passed --programs bar, then the status of the check will be OK. Prior to this change it would be CRITICAL (or whatever you set --stopped-state to)

Related Issue

Motivation and Context

If you're reporting the status of your programs individually, then without this change, all individual checks go critical when one program has an issue.

Also missing programs reported "not found in server response" but a status of OK, they now report as UNKNOWN.

How Has This Been Tested?

On the CLI for the various edge cases.

E.g. if foo is STOPPED and bar is RUNNING, if we've passed --programs bar, then the status of the check will be OK. Prior to this change it would be CRITICAL (or whatever you set --stopped-state to)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant